package com.fc.common.security.annotation;

import com.fc.common.security.component.FcResourceServerConfiguration;
import com.fc.common.security.component.FcResourceServerAutoConfiguration;
import com.fc.common.security.feign.FcFeignClientConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

import java.lang.annotation.*;

/**
 * @Description: 资源服务注解
 * @ClassName: EnableFcResourceServer
 * @Author: weisn
 * @Date: 2022/12/20 16:53
 * @Version: 1.0
 */
@Documented
@Inherited
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({ FcResourceServerAutoConfiguration.class, FcResourceServerConfiguration.class,
        FcFeignClientConfiguration.class })
public @interface EnableFcResourceServer {
}
